import request from '@/utils/request'

export const getRoleList = (params) => {
  return request.get('/sys/role', {
    params
  })
}

export const getRolePost = (data) => {
  return request.post('/sys/role', data)
}

export const updateRole = (data) => {
  return request.put(`/sys/role/${data.id}`, data)
}

export const delectRole = (id) => {
  return request.delete(`/sys/role/${id}`)
}
